<?php
if(isset($_GET['id'])) {
	echo $_GET['id'] . ": ";
}
if(isset($_GET['accepted'])) {
		mysql_connect("localhost", "root", "")or die("Could not connect: " . mysql_error());
		mysql_select_db("druvla_public") or die(mysql_error());
		mysql_query("INSERT IGNORE INTO requests (RequestSentByID, RequestRecipientID, RequestStatus, AddedMessage, FriendType)
			VALUES(1, '$userid_generator', 'Accepted', 'Welcome to Druvla', 'full')")or die(mysql_error());
		mysql_query("INSERT INTO users (UserID, username, password, first_name, last_name, email_address)
			VALUES('$userid_generator', '$username', '$password', '$first_name', '$last_name', '$email')")or die(mysql_error());
	}
}
if(isset($_GET['denied'])) {
	echo "success";
}
?>